#define _CRT_SECURE_NO_WARNINGS 1

#include"List.h"

//
//void TestList1()
//{
//	LTNode* plist = ListInit();
//	ListPushBack(plist, 1);
//	ListPushBack(plist, 2);
//	ListPushBack(plist, 3);
//	ListPushBack(plist, 4);
//	PrintList(plist);
//
//	ListPushFront(plist, 1);
//	ListPushFront(plist, 2);
//	ListPushFront(plist, 3);
//
//	PrintList(plist);
//}

//
//void TestList2()
//{
//	LTNode* plist = ListInit();
//	ListPushBack(plist, 1);
//	ListPushBack(plist, 2);
//	ListPushBack(plist, 3);
//	ListPushBack(plist, 4);
//	PrintList(plist);
//
//	ListPopBack(plist);
//	ListPopBack(plist);
//	ListPopBack(plist);
//	ListPopBack(plist);
//	
//	//ListPopBack(plist);
//	
//	PrintList(plist);
//}


void TestList3()
{
	LTNode* plist = ListInit();
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	PrintList(plist);

	/*ListPopfront(plist);
	ListPopfront(plist);
	ListPopfront(plist);
	ListPopfront(plist);*/

	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);

	PrintList(plist);
}


int main()
{
	//TestList1();
	TestList3();

	
	return 0;
}